import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import { store } from './store'
import * as ELIcons from '@element-plus/icons'
// 引入Elmessage和Elloading的css样式文件
import 'element-plus/theme-chalk/el-loading.css'
import 'element-plus/theme-chalk/el-message.css'
import { createPinia } from 'pinia'

const app = createApp(App)

app.use(router)
app.use(store)
app.use(createPinia())
for (const name in ELIcons) {
  app.component(name, (ELIcons as any)[name])
}
app.mount('#app')
